import http from '../index'
export const selectAll = (params) => http({
    url: '/api/wtht/selectAll?' + params,
    method: 'get'
})
export const getPart = (params) => http({
    url: '/api/wtht/search?' + params,
    method: 'get'
})
export const create = (data) => http({
    url: '/api/wtht/create',
    method: 'post',
    data
})
export const setQyrq = (data) => http({
    url: '/api/wtht/setQyrq',
    method: 'post',
    data
})
export const createYw = (data) => http({
    url: '/api/wtht/createYw',
    method: 'post',
    data
})
export const update = (data) => http({
    url: '/api/wtht/update',
    method: 'post',
    data
})
export const hetongzf = (params) => http({
    url: '/api/wtht/zf?' + params,
    method: 'get'
})
export const hetongqxzf = (params) => http({
    url: '/api/wtht/qxzf?' + params,
    method: 'get'
})
//合同
export const viewWtht = (params) => http({
    url: '/api/wtht/createWtht2?' + params,
    method: 'get',
    responseType: 'blob',
})
//业务类型
export const getFunctions = (params) => http({
    url: '/api/jdcpg/yw/getFunctions?' + params,
    method: 'get',
})